package com.five.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CreateUuid {

    /**
     * 获得一个UUID
     * @return String UUID
     */
    public static String getUUID(){
        String orderNo = "" ;
        String trandNo = String.valueOf((Math.random() * 9 + 1) * 1000000);
        String sdf = new SimpleDateFormat("yyyyMMddHHMMSS").format(new Date());
        orderNo = trandNo.toString().substring(0, 4);
        orderNo = sdf ;
        return orderNo ;
    }
}
